﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo522_1
{
    enum Foods
    {
        西红柿炒蛋,
        西红柿炒饭,
        西红柿炒土豆丝,
        西红柿炒鸡,
        西红柿炒年糕,
        西红柿炖鸡
    }
    class CookRobot : Robot
    {
        public Foods Food { get; set; }

        public CookRobot(string name, Foods fd)
            :base(name)
        {
            Food = fd;
        }
        public CookRobot()
        {
        }
        public override void Working()
        {
            Console.WriteLine("机器人名字：{0},菜名：{1}",base.Name,Food);
        }
    }
}
